<?php
namespace app\index\controller;

use think\Controller;
use app\index\model\Content;

class Index extends Controller
{
    /*
     * 首页
     */
    public function index()
    {
        $list = Content::where([ 'del' => 0 ])->limit(12) -> order('update_time DESC') -> select();
        $this->assign('list',$list);
        $this->view->replace([
            '__PUBLIC__'    =>  'static/',
            '__ROOT__'      =>  '/daogou/public/'
        ]);
        return $this->fetch();
    }

}
